package com.example.xiefeihong.chatroom.ui;

import com.example.xiefeihong.chatroom.dto.ChatMsg;

/**
 * Created by xiefeihong on 17-10-10.
 */

public class Msg {

    public static final int TYPE_RECEIVED = 0;

    public static final int TYPE_SENT = 1;

    private int type;

    private ChatMsg chatMsg;

    public Msg(ChatMsg chatMsg, int type) {
        this.chatMsg = chatMsg;
        this.type = type;
    }

    public ChatMsg getChatMsg() {
        return chatMsg;
    }

    public int getType() {
        return type;
    }

}
